
export class CommonConstants {
  static readonly RDB_NAME: string = 'HealthyLife.db'; // db name

  // THOUSANDTH
  static readonly THOUSANDTH_15: string = '1.5%'; // ‘1.5%’
  static readonly THOUSANDTH_12: string = '2.2%'; // ‘2.2%’
  static readonly THOUSANDTH_33: string = '3.3%'; // ‘3.3%’
  static readonly THOUSANDTH_50: string = '5%'; // ‘5%’
  static readonly THOUSANDTH_66: string = '6.6%'; // ‘6.6%’
  static readonly THOUSANDTH_80: string = '8%'; // ‘8%’
  static readonly THOUSANDTH_100: string = '10%'; // ‘10%’
  static readonly THOUSANDTH_120: string = '12%'; // ‘12%’
  static readonly THOUSANDTH_160: string = '16%'; // ‘16%’
  static readonly THOUSANDTH_400: string = '40%'; // ‘40%’
  static readonly THOUSANDTH_420: string = '42%'; // ‘42%’
  static readonly THOUSANDTH_500: string = '50%'; // ‘50%’
  static readonly THOUSANDTH_560: string = '56%'; // ‘56%’
  static readonly THOUSANDTH_800: string = '80%'; // ‘80%’
  static readonly THOUSANDTH_830: string = '83%'; // ‘83%’
  static readonly THOUSANDTH_880: string = '88%'; // ‘88%’
  static readonly THOUSANDTH_900: string = '90%'; // ‘90%’
  static readonly THOUSANDTH_940: string = '94%'; // ‘90%’
  static readonly THOUSANDTH_1000: string = '100%'; // ‘100%’

  static readonly DEFAULT_2: number = 2;

  static readonly DEFAULT_6: number = 6;

  static readonly DEFAULT_8: number = 8;

  static readonly DEFAULT_12: number = 12;

  static readonly DEFAULT_10: number = 10;

  static readonly DEFAULT_16: number = 16;

  static readonly DEFAULT_18: number = 18;

  static readonly DEFAULT_20: number = 20;

  static readonly DEFAULT_24: number = 24;

  static readonly DEFAULT_28: number = 28;

  static readonly DEFAULT_32: number = 32;

  static readonly DEFAULT_48: number = 48;

  static readonly DEFAULT_56: number = 56;

  static readonly DEFAULT_60: number = 60;

  static readonly DEFAULT_100: number = 100;

  static readonly DEFAULT_180: number = 180;

  // fontWeight
  static readonly FONT_WEIGHT_400: number = 400;

  static readonly FONT_WEIGHT_500: number = 500;

  static readonly FONT_WEIGHT_600: number = 600;

  static readonly FONT_WEIGHT_700: number = 700;

  static readonly FONT_WEIGHT_900: number = 900;

  // opacity
  static readonly OPACITY_4: number = 0.4;

  static readonly OPACITY_6: number = 0.6;

  // radius
  static readonly BORDER_RADIUS_PERCENT_50: string = '50%';

  // duration
  static readonly DURATION_1000: number = 1000; // 1000ms
  static readonly DURATION_800: number = 800; // 700ms
  static readonly DURATION_100: number = 100; // 100ms

  // space
  static readonly SPACE_2: number = 2;

  static readonly SPACE_4: number = 4;

  static readonly SPACE_6: number = 6;

  static readonly SPACE_8: number = 8;

  static readonly SPACE_10: number = 10;

  static readonly SPACE_12: number = 12;

  // global data key
  static readonly H_STORE: string = 'HeimaHealthyStore';

  static readonly RECORD_DATE: string = 'selectedDate';

  static readonly PACKAGE_NAME: string = 'com.itheima.healthylife';

  static readonly ENTRY_ABILITY: string = 'EntryAbility';

  /**
   * 当前用户推荐的每日摄入热量上限，单位：卡路里
   */
  static readonly RECOMMEND_CALORIE: number = 1962

  /**
   * 当前用户推荐的每日摄入碳水上限，单位：克
   */
  static readonly RECOMMEND_CARBON: number = 237

  /**
   * 当前用户推荐的每日摄入蛋白质上限，单位：克
   */
  static readonly RECOMMEND_PROTEIN: number = 68

  /**
   * 当前用户推荐的每日摄入脂肪上限，单位：克
   */
  static readonly RECOMMEND_FAT: number = 53


  /**
   * label font weight 400.
   */
  static readonly LABEL_FONT_WEIGHT: number = 400;

  /**
   * title font weight 500.
   */
  static readonly TITLE_FONT_WEIGHT: number = 500;

  /**
   * course item padding 12.
   */
  static readonly COURSE_ITEM_PADDING: number = 12;

  /**
   * loading duration 2000.
   */
  static readonly LOADING_DURATION: number = 2000;

  /**
   * title line number 2.
   */
  static readonly TITLE_LINE_NUMBER: number = 2;

  /**
   * 100 percent.
   */
  static readonly FULL_PERCENT: string = '100%';

  /**
   * classify title percent.
   */
  static readonly CLASSIFY_TITLE_PERCENT: string = '55%';

  static readonly SWIPER_TIME: number = 1500;


  //swiperArkts
  /**
   * animation duration of tab content switching.
   */
  static readonly DURATION_PAGE = 50;

  /**
   * animation duration of tab content switching.
   */
  static readonly DURATION_ADS = 200;

  /**
   * height of head portrait.
   */
  static readonly HEIGHT_HEAD = 40;

  /**
   * height of carousel title.
   */
  static readonly HEIGHT_CAROUSEL_TITLE = 90;

  /**
   * fontSize of description.
   */
  static readonly FONT_SIZE_DESCRIPTION = 12;

  /**
   * font size of photo name.
   */
  static readonly FONT_SIZE_PHOTO_NAME = 14;

  /**
   * font size of sort title.
   */
  static readonly FONT_SIZE_SORT_TITLE = 16;

  /**
   * font size of unchecked title.
   */
  static readonly FONT_SIZE_UNCHECKED = 18;

  /**
   * font size of title.
   */
  static readonly FONT_SIZE_TITLE = 20;

  /**
   * font size of checked title.
   */
  static readonly FONT_SIZE_CHECKED = 24;

  /**
   * font size of tab page which content has only tab name.
   */
  static readonly FONT_SIZE_PAGE_CONTENT = 28;

  /**
   * thinner font.
   */
  static readonly FONT_WEIGHT_LIGHT = 400;

  /**
   * normal font.
   */
  static readonly FONT_WEIGHT_NORMAL = 500;

  /**
   * bold font.
   */
  static readonly FONT_WEIGHT_BOLD = 700;

  /**
   * page layout weight.
   */
  static readonly LAYOUT_WEIGHT = 1;

  /**
   * border angle.
   */
  static readonly BORDER_RADIUS = 12;

  /**
   * line height for more.
   */
  static readonly LINE_HEIGHT_MORE = 19;

  /**
   * line height for navigation.
   */
  static readonly LINE_HEIGHT_NAVIGATION = 28;

  /**
   * space of topBar.
   */
  static readonly SPACE_TOP_BAR = 16;

  /**
   * space of navigation.
   */
  static readonly SPACE_NAVIGATION = 8;

  /**
   * border width of head portrait.
   */
  static readonly WIDTH_HEAD_BORDER = 2;

  /**
   * width of head portrait.
   */
  static readonly WIDTH_HEAD = 40;

  /**
   * radius of head portrait.
   */
  static readonly RADIUS_HEAD = 20;

  /**
   * rolling duration.
   */


  /**
   * margin of play page.
   */
  static readonly MARGIN_PLAY_PAGE = 10;

  /**
   * margin of text bottom.
   */
  static readonly BOTTOM_TEXT = 4;

  /**
   * margin of banner top.
   */
  static readonly TOP_ADS = 12;

  /**
   * margin of navigation left.
   */
  static readonly LEFT_POSITION = '3%';

  /**
   * margin of banner left.
   */
  static readonly ADS_LEFT = 12;

  /**
   * top margin of picture name.
   */
  static readonly TOP_NAME = 8;

  /**
   * top margin of picture description.
   */
  static readonly TOP_DESCRIPTION = 4;

  /**
   * top margin of vote icon.
   */
  static readonly TOP_IMAGE_VOTE = 20;

  /**
   * top margin of head portrait.
   */
  static readonly TOP_HEAD = 40;

  /**
   * maximum width.
   */
  static readonly FULL_WIDTH = '100%';

  /**
   * maximum height.
   */
  static readonly FULL_HEIGHT = '100%';

  /**
   * width of play model.
   */
  static readonly WIDTH_PLAY = '95%';

  /**
   * width of tab page.
   */
  static readonly PAGE_WIDTH = '94.4%';

  /**
   * width of sort name.
   */
  static readonly WIDTH_SORT_NAME = '62.2%';

  /**
   * sort content width of all.
   */
  static readonly WIDTH_SORT = '92%';

  /**
   * sort content width of movie.
   */
  static readonly WIDTH_MOVIE_SORT = '90%';

  /**
   * width of picture.
   */
  static readonly WIDTH_PICTURE = '72%';

  /**
   * height of banner.
   */
  static readonly HEIGHT_BANNER = '27%';

  /**
   * width of vote icon.
   */
  static readonly WIDTH_VOTE = '8.9%';

  /**
   * width of back icon.
   */
  static readonly WIDTH_BACK_ICON = '6.7%';

  /**
   * top margin of sort.
   */
  static readonly MARGIN_TOP_SORT = '3.2%';

  /**
   * bottom margin of sort.
   */
  static readonly MARGIN_BOTTOM_SORT = '1.7%';

  /**
   * bottom margin of grid.
   */
  static readonly MARGIN_BOTTOM_GRID = '4.2%';

  /**
   * height of video.
   */
  static readonly WIDTH_VIDEO = '26.2%';

  /**
   * number of columns.
   */
  static readonly TWO_COLUMNS = '1fr 1fr';

  /**
   * number of rows.
   */
  static readonly TWO_ROWS = '1fr 1fr';

  /**
   * number of columns.
   */
  static readonly THREE_COLUMNS = '1fr 1fr 1fr';

  /**
   * number of rows.
   */
  static readonly THREE_ROWS = '1fr 1fr 1fr';

  /**
   * gap of columns.
   */
  static readonly GAP_COLUMNS = '2.2%';

  /**
   * height of grid.
   */
  static readonly HEIGHT_GRID = '45%';

  /**
   * height of movie description.
   */
  static readonly HEIGHT_DESCRIPTION = '12.3%';

  /**
   * height of top bar.
   */
  static readonly TOP_BAR_HEIGHT = '7.2%';

  /**
   * height of comment icon.
   */
  static readonly HEIGHT_COMMENT = '4.1%';

  /**
   * height of back icon.
   */
  static readonly HEIGHT_BACK_ICON = '3.1%';

  /**
   * horizontal position of comment.
   */
  static readonly OFFSET_COMMENT_X = '-5%';

  /**
   * vertical position of comment.
   */
  static readonly OFFSET_COMMENT_Y = '10%';

  /**
   * vertical position of description.
   */
  static readonly OFFSET_DESCRIPTION_Y = '45%';

  /**
   * start position.
   */
  static readonly START_POSITION = '0%';

  /**
   * video play page.
   */
  static readonly PLAY_PAGE = 'pages/PageVideo';

  /**
   * home page.
   */
  static readonly HOME_PAGE = 'pages/SwiperIndex';
};







/**
 *route for secondPage
 */
export const SECOND_PAGE: string = 'pages/Second';

/**
 * height percent of the list item
 */
export const EIGHT_POINT_TWO_PERCENT: string = '8.2%';

/**
 * with percent of the index component
 */
export const INDEX_COMPONENT_WITH_PERCENT: string = '93.3%';

/**
 * full percent
 */
export const ALL_PERCENT: string = '100%';

/**
 * opacity of text
 */
export const ATTRIBUTE_OPACITY: number = Number.parseFloat('0.6');

/**
 * title font weight
 */
export const TITLE_FONT_WEIGHT: number = 700;

/**
 * common font weight
 */
export const COMMON_FONT_WEIGHT: number = 500;

/**
 * container data list
 */
export const LIST: number[] = [1, 2, 3, 4, 5, 6, 7];

/**
 * container type enum
 */
export const enum CONTAINER {
  FLEX = 'Flex',
  ROW = 'Row',
  COLUMN = 'Column',
  STACK = 'Stack',
};

/**
 * attribute  enum
 */
export const enum ATTRIBUTE {
  ROW = 'Row',
  COLUMN = 'Column',
  COLUMN_REVERSE = 'ColumnReverse',
  NOWRAP = 'NoWrap',
  WRAP = 'Wrap',
  WRAP_REVERSE = 'WrapReverse',
  START = 'Start',
  CENTER = 'Center',
  END = 'End',
  TOP = 'Top',
  BOTTOM = 'Bottom',
  TOP_START = 'TopStart',
  TOP_END = 'TopEnd',
  BOTTOM_START = 'BottomStart',
  BOTTOM_END = 'BottomEnd'
};

/**
 * attribute group enum
 */
export const enum GROUP {
  MAIN_DIRECTION = 'MAIN_DIRECTION',
  WRAP_TYPE = 'WRAP_TYPE',
  MAIN_ALIGN = 'MAIN_ALIGN',
  AXI_ALIGN = 'AXI_ALIGN',
  ALIGN_TYPE = 'ALIGN_TYPE'
};

/**
 * The height percent of show list
 */
export const enum SHOW_LIST_HEIGHT_PERCENT {
  FLEX_SHOW_LIST_HEIGHT = '43.6%',
  COLUMN_ROW_SHOW_LIST_HEIGHT = '51.3%',
  STACK_SHOW_LIST_HEIGHT = '46.2%',
  STACK_SHOW_SMALL_HEIGHT = '72.2%',
};

/**
 * The number of container type
 */
export const enum CONTAINER_TYPE {
  FLEX = 1,
  COLUMN = 2,
  ROW = 3,
  STACK = 4,
};

/**
 * The number of margin ,font size or space
 */
export const enum MARGIN_FONT_SIZE_SPACE {
  COMMON_PADDING = 4,
  COMMON_MARGIN = 8,
  FIRST_MARGIN = 10,
  SECOND_MARGIN = 12,
  THIRD_MARGIN = 14,
  FOURTH_MARGIN = 16,
  FIFTH_MARGIN = 18,
  SIXTH_MARGIN = 20,
  SEVENTH_MARGIN = 24,
  EIGHTH_MARGIN = 28,
  NINTH_MARGIN = 32,
  LAST_MARGIN = 50,
};


